package com.example.springboottestgit.controller;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: ZZZ
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("fsd\n\ndsfsd");
        System.out.println("01234".substring(1));
        System.out.println();

        List<String> list = new ArrayList<>();
        String str = "#fs#46&5&5&#aaa|bbb|&13213&";
        String[] split1 = str.split("#");
        for (String s : split1) {
            if(s.length()>0){
                System.out.println(s);
                s = s.replace("|", "#").replace("&", "#");
                String[] split2 = s.split("#");
                for (String s1 : split2) {
                    if(s1.length()>0){
                        System.out.println(s1);
                    }
                }
                System.out.println();
            }
        }
    }
}

